<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../static/commons/layui/css/layui.css"  th:href="@{/commons/layui/css/layui.css}" media="all" />
    <link rel="stylesheet" href="../../static/css/public.css" th:href="@{/css/public.css}" media="all" />
</head>
<body class="childrenBody padr50">
    <form class="layui-form" action="" >
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="hidden" name="id" class="id" />
                <input type="text" name="relName" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input relName">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block sex">
                <input type="radio" name="sex" value="男" title="男" />
                <input type="radio" name="sex" value="女" title="女" />
                <input type="radio" name="sex" value="保密" title="保密" checked />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">工作岗位</label>
            <div class="layui-input-block job">
                <select name="job" required lay-verify="required">
                    <option value=""></option>
                    <th:block th:each="job : ${jobs}">
                        <option th:text="${job.name}" th:value="${job.id}"></option>
                    </th:block>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-block role">
                <select name="roleId" required lay-verify="required">
                    <option value=""></option>
                    <th:block th:each="role : ${roles}">
                        <option th:text="${role.name}" th:value="${role.id}"></option>
                    </th:block>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属部门</label>
            <div class="layui-input-block dept">
                <select name="deptId" required lay-verify="required">
                    <option value=""></option>
                    <th:block th:each="dept : ${depts}">
                        <option th:text="${dept.name}" th:value="${dept.id}"></option>
                    </th:block>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-center">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit lay-filter="execute">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script type="text/javascript" th:attr="src=@{/commons/layui/layui.js}"></script>
    <script type="text/javascript" th:attr="src=@{/js/user.js}"></script>
</body>
</html>